::cd proto
set fls="%cd%\proto"
::set fls="%cd%"
::cd ..
for /r %fls% %%i in (*.proto) do (  
    protoc.exe --proto_path=%fls% --plugin=protoc-gen-lua=".\plugin\protoc2lua\build.bat" --lua_out=.\generated_code\lua %%i      
) 
::pause